home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / New System Software Extensions / QuickDraw™ GX 1.1.2 / Programming Stuff / QuickDraw™ GX Libraries / CIncludes / layout edit library.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-10  |  4.5 KB  |  68 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        layout edit library.h
  3.  
  4.     Copyright:    © 1984-1995 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     WARNING
  7.     This file was auto generated by the interfacer tool. Modifications
  8.     must be made to the master file.
  9.  
  10. */
  11.  
  12. #ifndef layoutEditLibraryIncludes
  13. #define layoutEditLibraryIncludes
  14.  
  15. #include <Types.h>
  16. /*    #include <ConditionalMacros.h>                                */
  17. /*    #include <MixedMode.h>                                        */
  18. /*        #include <Traps.h>                                        */
  19. #include <Memory.h>
  20. #include "selection library.h"
  21. /*    #include "layout types.h"                                    */
  22. /*        #include "math types.h"                                    */
  23. /*        #include "graphics types.h"                                */
  24.     #ifdef __cplusplus
  25. extern "C" {
  26.     #endif
  27.  
  28. typedef Handle LayoutEditHandle;
  29.  
  30. extern LayoutEditHandle NewLayoutEditHandle(long textRunCount, const short textRunLengths[], const void *text[], long styleRunCount, const short styleRunLengths[], const gxStyle styles[], long levelRunCount, const short levelRunLengths[], const short levels[], gxLayoutOptions *layoutOptions, gxPoint *position, gxStyle defaultStyle);
  31. extern LayoutEditHandle LayoutEditHandleFromLayout(gxShape layout);
  32. extern long GetLayoutEditHandle(LayoutEditHandle handle, void *text, long *styleRunCount, short styleRunLengths[], gxStyle styles[], long *levelRunCount, short levelRunLengths[], short levels[], gxLayoutOptions *layoutOptions, gxPoint *position);
  33. extern void SetLayoutEditHandle(LayoutEditHandle handle, long textRunCount, const short textRunLengths[], const void *text[], long styleRunCount, const short styleRunLengths[], const gxStyle styles[], long levelRunCount, const short levelRunLengths[], const short levels[], const gxLayoutOptions *layoutOptions, const gxPoint *position);
  34. extern void SetLayoutEditHandleParts(LayoutEditHandle handle, gxByteOffset oldStartOffset, gxByteOffset oldEndOffset, long newTextRunCount, const short newTextRunLengths[], const void *newText[], long newStyleRunCount, const short newStyleRunLengths[], const gxStyle newStyles[], long newLevelRunCount, const short newLevelRunLengths[], const short newLevels[]);
  35. extern void SetLayoutEditHandleSelectedParts(LayoutEditHandle handle, long newTextRunCount, const short newTextRunLengths[], const void *newText[], long newStyleRunCount, const short newStyleRunLengths[], const gxStyle newStyles[], long newLevelRunCount, const short newLevelRunLengths[], const short newLevels[]);
  36. extern void SetLayoutEditHandleShapeParts(LayoutEditHandle handle, gxByteOffset startOffset, gxByteOffset endOffset, gxShape insert);
  37. extern long GetLayoutEditHandleParts(LayoutEditHandle handle, gxByteOffset startOffset, gxByteOffset endOffset, void *text, long *styleRunCount, short styleRunLengths[], gxStyle styles[], long *levelRunCount, short levelRunLengths[], short levels[]);
  38. extern long GetLayoutEditHandleSelectedParts(LayoutEditHandle handle, void *text, long *styleRunCount, short styleRunLengths[], gxStyle styles[], long *levelRunCount, short levelRunLengths[], short levels[]);
  39. extern gxShape GetLayoutEditHandleShapeParts(LayoutEditHandle handle, gxByteOffset startOffset, gxByteOffset endOffset, gxShape dest);
  40. extern void LayoutEditRotateShape(LayoutEditHandle handle, Fixed degrees, Fixed translateX, Fixed translateY);
  41. extern void LayoutEditIdle(LayoutEditHandle handle);
  42. extern void LayoutEditClick(LayoutEditHandle handle, gxPoint hitDown, boolean extend);
  43. extern void LayoutEditActivate(LayoutEditHandle handle);
  44. extern void LayoutEditDeactivate(LayoutEditHandle handle);
  45. extern void LayoutEditKey(LayoutEditHandle handle, char key);
  46. extern void LayoutEditUpdate(LayoutEditHandle handle);
  47. extern SelectionHandle LayoutEditGetSelection(LayoutEditHandle handle);
  48. extern void LayoutEditSetSelection(LayoutEditHandle handle, SelectionOffset start, SelectionOffset end);
  49. extern void LayoutEditSetSelectionHandle(LayoutEditHandle handle, SelectionHandle selection);
  50. extern gxViewPort GetLayoutEditViewPort(LayoutEditHandle handle);
  51. extern void LayoutEditSetStyle(LayoutEditHandle handle, gxStyle newStyle);
  52. extern void LayoutEditIncrementLevel(LayoutEditHandle handle);
  53. extern void LayoutEditDecrementLevel(LayoutEditHandle handle);
  54. extern void LayoutEditSetLevel(LayoutEditHandle handle, long level);
  55. extern void LayoutEditCut(LayoutEditHandle handle);
  56. extern void LayoutEditCopy(LayoutEditHandle handle);
  57. extern void LayoutEditPaste(LayoutEditHandle handle);
  58. extern void LayoutEditClear(LayoutEditHandle handle);
  59. extern void LayoutEditFromScrap(LayoutEditHandle handle);
  60. extern void LayoutEditToScrap(LayoutEditHandle handle);
  61. extern void DisposeLayoutEditHandle(LayoutEditHandle handle);
  62.     #ifdef __cplusplus
  63. }
  64.     #endif
  65.  
  66. #endif
  67.  
  68.